import java.applet.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.applet.*;
import java.net.*;
import java.io.*;

import javax.imageio.ImageIO;

public class Window extends Applet {
	private BufferedImage backImage;
	
	public void init() {
		setSize(600,600);
		setBackground(Color.CYAN);
		
		/*// load file branch.jpg 
		backImage = getImage (getCodeBase (), "fall06.gif"); */
		
		try {
			backImage = ImageIO.read(new File("fall06.gif"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public void paint (Graphics g) {
		// drawing the image: g.drawImage (name, x- value, y - value, frame) 
		g.drawImage (backImage, 10, 10, null);
		
	}

}
